package engine.newUi
{
	import engine.control.loading.NxLoading;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.text.NxLabel;
	
	/**
	 * 雪人逻辑 
	 * @author gf
	 * 
	 */	
	
	public class MakeSnowUI extends BaseUI
	{
		public var picBg			:MovieClip
		public var loading			:MovieClip;
		private var _myLogic		:MakeSnowLogic;
		private static var _self	:MakeSnowUI;
		public function MakeSnowUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		public static function getInstance():MakeSnowUI
		{
			if(_self == null)
			{
				_self	=	new MakeSnowUI();
			}
			return _self;
		}
		
		override public function Init():void
		{
			_myLogic	=	MakeSnowLogic.getInstance();
			_myLogic.init();
		}
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
		}
		override protected function BeforeShow():void
		{
			_myLogic.addListener();
		}
	}
}